package com.qq.proxy.dynamicproxy;


import java.lang.reflect.Proxy;

/**
 * @author Bob
 */
public class ProxyFactory {
    public static Object getProxy(Object target)
    {
        return Proxy.newProxyInstance(target.getClass().getClassLoader(), target.getClass().getInterfaces(), new BusinessServiceProxy(target));
    }
}
